package com.hc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hc.bean.SysRole;
import lombok.Data;

import java.util.List;

/**
 * 用户信息
 * @author hc
 */
@Data
@TableName(value = "sys_userinfo")
public class SysUserInfo {
    /**
     * 用户id
     */
    @TableId(value = "user_id",type = IdType.AUTO)
    private String userId;

    /**
     * 账号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 用户名
      */
    @TableField(value = "name")
    private String name;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 电话
     */
    @TableField(value = "telphone")
    private String telPhone;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     *
     */
    @TableField(value = "pycode")
    private String pycode;

    /**
     * 状态
     */
    @TableField(value = "state")
    private String state;

    /**
     *
     */
    @TableField(value = "BraceletID")
    private String BraceletID;

    /**
     *
     */
    @TableField(value = "group_id")
    private String groupId;

    /**
     *
     */
    @TableField(value = "id_card")
    private String idCard;

    @TableField(exist = false)
    private List<SysRole> roleList;
}
